<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="image.resources.html">« 资源类型</a></li>
      <li style="float: right;"><a href="image.examples.html">范例 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.image.html">GD</a></li>
    <li>预定义常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="image.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <dl>
  
   <dt id="constant.gd-version">
    <strong><code>GD_VERSION</code></strong>
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     PHP 编译所依据的 GD 版本。
     （PHP 5.2.4 可用）
    </span>
   </dd>

  

  
   <dt id="constant.gd-major-version">
    <strong><code>GD_MAJOR_VERSION</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
     PHP 编译所依据的 GD 大版本。
     （PHP 5.2.4 可用）
    </span>
   </dd>

  

  
   <dt id="constant.gd-minor-version">
    <strong><code>GD_MINOR_VERSION</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
     PHP 编译所依据的 GD 小版本。
     （PHP 5.2.4 可用）
    </span>
   </dd>

  

  
   <dt id="constant.gd-release-version">
    <strong><code>GD_RELEASE_VERSION</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
     PHP 编译所依据的 GD 发布版本。
     （PHP 5.2.4 可用）
    </span>
   </dd>

  

  
   <dt id="constant.gd-extra-version">
    <strong><code>GD_EXTRA_VERSION</code></strong>
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     PHP 编译所依据的 GD 扩展版本（beta/rc..）。
     （PHP 5.2.4 可用）
    </span>
   </dd>

  

  
   <dt id="constant.gd-bundled">
    <strong><code>GD_BUNDLED</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
     当使用绑定版本的 GD 时，此值为 1，
     反之为 0。
    </span>
   </dd>

  
  
  
   <dt id="constant.img-bmp">
    <strong><code>IMG_BMP</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used as a return value by <span class="function"><a href="function.imagetypes.html" class="function">imagetypes()</a></span>
</span>
   </dd>

  
  
   <dt id="constant.img-gif">
    <strong><code>IMG_GIF</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used as a return value by <span class="function"><a href="function.imagetypes.html" class="function">imagetypes()</a></span>
</span>
   </dd>

  
  
   <dt id="constant.img-jpg">
    <strong><code>IMG_JPG</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used as a return value by <span class="function"><a href="function.imagetypes.html" class="function">imagetypes()</a></span>
</span>
   </dd>

  
  
   <dt id="constant.img-jpeg">
    <strong><code>IMG_JPEG</code></strong> 
     (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used as a return value by <span class="function"><a href="function.imagetypes.html" class="function">imagetypes()</a></span>
</span>
    <blockquote class="note"><p><strong class="note">注意</strong>: 
     <p class="para">
      本常量值同 <strong><code>IMG_JPG</code></strong> 
     </p>
    </p></blockquote>
   </dd>

  
  
   <dt id="constant.img-png">
    <strong><code>IMG_PNG</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used as a return value by <span class="function"><a href="function.imagetypes.html" class="function">imagetypes()</a></span>
</span>
   </dd>

  
  
   <dt id="constant.img-wbmp">
    <strong><code>IMG_WBMP</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used as a return value by <span class="function"><a href="function.imagetypes.html" class="function">imagetypes()</a></span>
</span>
   </dd>

  
  
   <dt id="constant.img-xpm">
    <strong><code>IMG_XPM</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used as a return value by <span class="function"><a href="function.imagetypes.html" class="function">imagetypes()</a></span>
</span>
   </dd>

  
  
   <dt id="constant.img-webp">
    <strong><code>IMG_WEBP</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used as a return value by <span class="function"><a href="function.imagetypes.html" class="function">imagetypes()</a></span>
</span>
    <span class="simpara">
     PHP 5.6.25 和 PHP 7.0.10 版本中都可用。
    </span>
   </dd>

  
  
   <dt id="constant.img-color-tiled">
    <strong><code>IMG_COLOR_TILED</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Special color option which can be used instead of a color allocated with
    <span class="function"><a href="function.imagecolorallocate.html" class="function">imagecolorallocate()</a></span> or
    <span class="function"><a href="function.imagecolorallocatealpha.html" class="function">imagecolorallocatealpha()</a></span>.
</span>
   </dd>

  
  
   <dt id="constant.img-color-styled">
    <strong><code>IMG_COLOR_STYLED</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Special color option which can be used instead of a color allocated with
    <span class="function"><a href="function.imagecolorallocate.html" class="function">imagecolorallocate()</a></span> or
    <span class="function"><a href="function.imagecolorallocatealpha.html" class="function">imagecolorallocatealpha()</a></span>.
</span>
   </dd>

  
  
   <dt id="constant.img-color-brushed">
    <strong><code>IMG_COLOR_BRUSHED</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Special color option which can be used instead of a color allocated with
    <span class="function"><a href="function.imagecolorallocate.html" class="function">imagecolorallocate()</a></span> or
    <span class="function"><a href="function.imagecolorallocatealpha.html" class="function">imagecolorallocatealpha()</a></span>.
</span>
   </dd>

  
  
   <dt id="constant.img-color-styledbrushed">
    <strong><code>IMG_COLOR_STYLEDBRUSHED</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Special color option which can be used instead of a color allocated with
    <span class="function"><a href="function.imagecolorallocate.html" class="function">imagecolorallocate()</a></span> or
    <span class="function"><a href="function.imagecolorallocatealpha.html" class="function">imagecolorallocatealpha()</a></span>.
</span>
   </dd>

  
  
   <dt id="constant.img-color-transparent">
    <strong><code>IMG_COLOR_TRANSPARENT</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Special color option which can be used instead of a color allocated with
    <span class="function"><a href="function.imagecolorallocate.html" class="function">imagecolorallocate()</a></span> or
    <span class="function"><a href="function.imagecolorallocatealpha.html" class="function">imagecolorallocatealpha()</a></span>.
</span>
   </dd>

  
  
   <dt id="constant.img-affine-translate">
    <strong><code>IMG_AFFINE_TRANSLATE</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    An affine transformation type constant used by the <span class="function"><a href="function.imageaffinematrixget.html" class="function">imageaffinematrixget()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-affine-scale">
    <strong><code>IMG_AFFINE_SCALE</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    An affine transformation type constant used by the <span class="function"><a href="function.imageaffinematrixget.html" class="function">imageaffinematrixget()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-affine-rotate">
    <strong><code>IMG_AFFINE_ROTATE</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    An affine transformation type constant used by the <span class="function"><a href="function.imageaffinematrixget.html" class="function">imageaffinematrixget()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-affine-shear-horizontal">
    <strong><code>IMG_AFFINE_SHEAR_HORIZONTAL</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    An affine transformation type constant used by the <span class="function"><a href="function.imageaffinematrixget.html" class="function">imageaffinematrixget()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-affine-shear-vertical">
    <strong><code>IMG_AFFINE_SHEAR_VERTICAL</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    An affine transformation type constant used by the <span class="function"><a href="function.imageaffinematrixget.html" class="function">imageaffinematrixget()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-arc-rounded">
    <strong><code>IMG_ARC_ROUNDED</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    A style constant used by the <span class="function"><a href="function.imagefilledarc.html" class="function">imagefilledarc()</a></span> function.
</span>
    <blockquote class="note"><p><strong class="note">注意</strong>: 
     <p class="para">
      此常量值同 <strong><code>IMG_ARC_PIE</code></strong>
     </p>
    </p></blockquote>
   </dd>

  
  
   <dt id="constant.img-arc-pie">
    <strong><code>IMG_ARC_PIE</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    A style constant used by the <span class="function"><a href="function.imagefilledarc.html" class="function">imagefilledarc()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-arc-chord">
    <strong><code>IMG_ARC_CHORD</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    A style constant used by the <span class="function"><a href="function.imagefilledarc.html" class="function">imagefilledarc()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-arc-nofill">
    <strong><code>IMG_ARC_NOFILL</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    A style constant used by the <span class="function"><a href="function.imagefilledarc.html" class="function">imagefilledarc()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-arc-edged">
    <strong><code>IMG_ARC_EDGED</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    A style constant used by the <span class="function"><a href="function.imagefilledarc.html" class="function">imagefilledarc()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-gd2-raw">
    <strong><code>IMG_GD2_RAW</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    A type constant used by the <span class="function"><a href="function.imagegd2.html" class="function">imagegd2()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-gd2-compressed">
    <strong><code>IMG_GD2_COMPRESSED</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    A type constant used by the <span class="function"><a href="function.imagegd2.html" class="function">imagegd2()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-effect-replace">
    <strong><code>IMG_EFFECT_REPLACE</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Alpha blending effect used by the <span class="function"><a href="function.imagelayereffect.html" class="function">imagelayereffect()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-effect-alphablend">
    <strong><code>IMG_EFFECT_ALPHABLEND</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Alpha blending effect used by the <span class="function"><a href="function.imagelayereffect.html" class="function">imagelayereffect()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-effect-normal">
    <strong><code>IMG_EFFECT_NORMAL</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Alpha blending effect used by the <span class="function"><a href="function.imagelayereffect.html" class="function">imagelayereffect()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-effect-overlay">
    <strong><code>IMG_EFFECT_OVERLAY</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Alpha blending effect used by the <span class="function"><a href="function.imagelayereffect.html" class="function">imagelayereffect()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-effect-multiply">
    <strong><code>IMG_EFFECT_MULTIPLY</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Alpha blending effect used by the <span class="function"><a href="function.imagelayereffect.html" class="function">imagelayereffect()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-filter-negate">
    <strong><code>IMG_FILTER_NEGATE</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-filter-grayscale">
    <strong><code>IMG_FILTER_GRAYSCALE</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-filter-brightness">
    <strong><code>IMG_FILTER_BRIGHTNESS</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-filter-contrast">
    <strong><code>IMG_FILTER_CONTRAST</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-filter-colorize">
    <strong><code>IMG_FILTER_COLORIZE</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-filter-edgedetect">
    <strong><code>IMG_FILTER_EDGEDETECT</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-filter-gaussian-blur">
    <strong><code>IMG_FILTER_GAUSSIAN_BLUR</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-filter-selective-blur">
    <strong><code>IMG_FILTER_SELECTIVE_BLUR</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-filter-emboss">
    <strong><code>IMG_FILTER_EMBOSS</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-filter-mean-removal">
    <strong><code>IMG_FILTER_MEAN_REMOVAL</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-filter-smooth">
    <strong><code>IMG_FILTER_SMOOTH</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.img-filter-pixelate">
    <strong><code>IMG_FILTER_PIXELATE</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
</span>
    <span class="simpara">
     （PHP 5.3.0 可用）
    </span>
   </dd>

  
  
   <dt id="constant.img-filter-scatter">
    <strong><code>IMG_FILTER_SCATTER</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
</span>
    <span class="simpara">
        （自 PHP 7.4.0 版本可用）
    </span>
   </dd>

  
  
   <dt id="constant.imagetype-gif">
    <strong><code>IMAGETYPE_GIF</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Image type constant used by the <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span>
    and <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
</span>
   </dd>

  
  
   <dt id="constant.imagetype-jpeg">
    <strong><code>IMAGETYPE_JPEG</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Image type constant used by the <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span>
    and <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
</span>
   </dd>

  
  
   <dt id="constant.imagetype-jpeg2000">
    <strong><code>IMAGETYPE_JPEG2000</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Image type constant used by the <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span>
    and <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
</span>
   </dd>

  
  
   <dt id="constant.imagetype-png">
    <strong><code>IMAGETYPE_PNG</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Image type constant used by the <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span>
    and <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
</span>
   </dd>

  
  
   <dt id="constant.imagetype-swf">
    <strong><code>IMAGETYPE_SWF</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Image type constant used by the <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span>
    and <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
</span>
   </dd>

  
  
   <dt id="constant.imagetype-psd">
    <strong><code>IMAGETYPE_PSD</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Image type constant used by the <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span>
    and <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
</span>
   </dd>

  
  
   <dt id="constant.imagetype-bmp">
    <strong><code>IMAGETYPE_BMP</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Image type constant used by the <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span>
    and <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
</span>
   </dd>

  
  
   <dt id="constant.imagetype-wbmp">
    <strong><code>IMAGETYPE_WBMP</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Image type constant used by the <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span>
    and <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
</span>
   </dd>

  
  
   <dt id="constant.imagetype-xbm">
    <strong><code>IMAGETYPE_XBM</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Image type constant used by the <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span>
    and <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
</span>
   </dd>

  
  
   <dt id="constant.imagetype-tiff-ii">
    <strong><code>IMAGETYPE_TIFF_II</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Image type constant used by the <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span>
    and <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
</span>
   </dd>

  
  
   <dt id="constant.imagetype-tiff-mm">
    <strong><code>IMAGETYPE_TIFF_MM</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Image type constant used by the <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span>
    and <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
</span>
   </dd>

  
  
   <dt id="constant.imagetype-iff">
    <strong><code>IMAGETYPE_IFF</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Image type constant used by the <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span>
    and <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
</span>
   </dd>

  
  
   <dt id="constant.imagetype-jb2">
    <strong><code>IMAGETYPE_JB2</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Image type constant used by the <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span>
    and <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
</span>
   </dd>

  
  
   <dt id="constant.imagetype-jpc">
    <strong><code>IMAGETYPE_JPC</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Image type constant used by the <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span>
    and <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
</span>
   </dd>

  
  
   <dt id="constant.imagetype-jp2">
    <strong><code>IMAGETYPE_JP2</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Image type constant used by the <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span>
    and <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
</span>
   </dd>

  
  
   <dt id="constant.imagetype-jpx">
    <strong><code>IMAGETYPE_JPX</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Image type constant used by the <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span>
    and <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
</span>
   </dd>

  
  
   <dt id="constant.imagetype-swc">
    <strong><code>IMAGETYPE_SWC</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Image type constant used by the <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span>
    and <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
</span>
   </dd>

  
  
   <dt id="constant.imagetype-ico">
    <strong><code>IMAGETYPE_ICO</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Image type constant used by the <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span>
    and <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
</span>
    <span class="simpara">
     (自 PHP 5.3.0 开始支持)
    </span>
   </dd>

  
  
   <dt id="constant.imagetype-webp">
    <strong><code>IMAGETYPE_WEBP</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    Image type constant used by the <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span>
    and <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
</span>
    <span class="simpara">
     (从 PHP 7.1.0 开始支持)
    </span>
   </dd>

  
  
   <dt id="constant.png-no-filter">
    <strong><code>PNG_NO_FILTER</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    A special PNG filter, used by the <span class="function"><a href="function.imagepng.html" class="function">imagepng()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.png-filter-none">
    <strong><code>PNG_FILTER_NONE</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    A special PNG filter, used by the <span class="function"><a href="function.imagepng.html" class="function">imagepng()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.png-filter-sub">
    <strong><code>PNG_FILTER_SUB</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    A special PNG filter, used by the <span class="function"><a href="function.imagepng.html" class="function">imagepng()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.png-filter-up">
    <strong><code>PNG_FILTER_UP</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    A special PNG filter, used by the <span class="function"><a href="function.imagepng.html" class="function">imagepng()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.png-filter-avg">
    <strong><code>PNG_FILTER_AVG</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    A special PNG filter, used by the <span class="function"><a href="function.imagepng.html" class="function">imagepng()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.png-filter-paeth">
    <strong><code>PNG_FILTER_PAETH</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    A special PNG filter, used by the <span class="function"><a href="function.imagepng.html" class="function">imagepng()</a></span> function.
</span>
   </dd>

  
  
   <dt id="constant.png-all-filters">
    <strong><code>PNG_ALL_FILTERS</code></strong> 
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    A special PNG filter, used by the <span class="function"><a href="function.imagepng.html" class="function">imagepng()</a></span> function.
</span>
   </dd>

  

  
   <dt id="constant.img-flip-vertical">
    <strong><code>IMG_FLIP_VERTICAL</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imageflip.html" class="function">imageflip()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-flip-horizontal">
    <strong><code>IMG_FLIP_HORIZONTAL</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imageflip.html" class="function">imageflip()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-flip-both">
    <strong><code>IMG_FLIP_BOTH</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imageflip.html" class="function">imageflip()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-bell">
    <strong><code>IMG_BELL</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-bessel">
    <strong><code>IMG_BESSEL</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-bilinear-fixed">
    <strong><code>IMG_BILINEAR_FIXED</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-bicubic">
    <strong><code>IMG_BICUBIC</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-bicubic-fixed">
    <strong><code>IMG_BICUBIC</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-blackman">
    <strong><code>IMG_BLACKMAN</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-box">
    <strong><code>IMG_BOX</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-bspline">
    <strong><code>IMG_BSPLINE</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-catmullrom">
    <strong><code>IMG_CATMULLROM</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-gaussian">
    <strong><code>IMG_GAUSSIAN</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-generalized-cubic">
    <strong><code>IMG_GENERALIZED_CUBIC</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-hermite">
    <strong><code>IMG_HERMITE</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-hamming">
    <strong><code>IMG_HAMMING</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-hanning">
    <strong><code>IMG_HANNING</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-mitchell">
    <strong><code>IMG_MITCHELL</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-power">
    <strong><code>IMG_POWER</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-quadratic">
    <strong><code>IMG_QUADRATIC</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-sinc">
    <strong><code>IMG_SINC</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-nearest-neighbour">
    <strong><code>IMG_NEAREST_NEIGHBOUR</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-weighted4">
    <strong><code>IMG_WEIGHTED4</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

  
   <dt id="constant.img-triangle">
    <strong><code>IMG_TRIANGLE</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
</span>
   </dd>

  

 </dl>

</div>
</div></div></body></html>